Comments (4)
It seems to me that here,
ans_rule
is overruling theans_rule
fromPGbasicmacros.pl
No, that's not the case. Since these are inside the package parserPopUp;
here
Line 90 in 5e6c0a4
that makes the methods of the parserPopUp
class, not global functions like main::answer_rule()
that you refer to.
These are needed particular for things like PGML and MultiAnswer, which use $mo->ans_rule
and $mo->named_ans_rule()
to obtain answer rules for the MathObject $mo
.
All of this is raising my suspicion that these instances were supposed to be the capital letter spelling, or something like that. Or do I misunderstand what is going on here?
I'm afraid it is the later. These are properly named. See
pg/macros/parserMultiAnswer.pl
Lines 445 to 461 in 5e6c0a4
and
Lines 1010 to 1015 in 5e6c0a4
All MathObejcts get these methods from
Lines 363 to 371 in 5e6c0a4
though some (like PopUps) need to override the basic method.
The upshot is, these are correct as they stand.
from pg.
OK, I get it. Thank you for the explanation. So these are essentially only there (right now) for the sake of parserMultiAnswer.pl
. Sorry for the noise. I was trying to sort this all out while I try to mimic parserPopUp.pl
for an attempt at a GoeGebra class.
from pg.
So these are essentially only there (right now) for the sake of
parserMultiAnswer.pl
And also PGML.pl
, and for creating answer arrays for matrices and other list-like MathObjects, but yes, it is for that.
from pg.
OK, I missed PGML using named_ans_rule
given the way "named_ans_rule" isn't found in a search. I see it now.
from pg.
Related Issues (20)
- Bug when a matrix Math Object is reused as an answer HOT 10
- PGML.pl has lines that should have been removed. HOT 1
- checkboxlist within a RadioMultiAnswer HOT 4
- Using upToConstant with complex numbers HOT 4
- keyboard issue with GraphTool HOT 8
- inconsistency in multiple choice macros HOT 4
- run-perltidy deletes .bak files
- Error answers now are escaped when they shouldn't be. HOT 1
- Cropping from pgfplots is not always working for final SVG output HOT 13
- variables declared with `my` lead to errors HOT 1
- student answers get spaces normalized
- iframeResizer, feedback popover, and mqeditor HOT 16
- Updating AnswerFormatHelp.pl HOT 5
- Viewing all correct answers at the same time HOT 4
- PTX "image" tag getting changed to "img" HOT 5
- error with brace and x HOT 9
- PG editor not decoding as expecting HOT 1
- macros/graph/PGnauGraphics.pl doesn't use unique name, which can break tests. HOT 1
- securtiy issues with braces HOT 2
- MathQuill toolbar placement in a relatively positioned parent - bug when in an RTL course. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pg.