jm.evers

Toutes mes réponses sur les forums

20 sujets de 21 à 40 (sur un total de 147)
  • Auteur
    Messages
  • en réponse à : dashed arrows not dashed in canvasdraw #6246
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    helas this is not a bug of canvasdraw, but it seems that the html5 canvas implementation of dashing is somewhat troublesome.
    The dashing may even be different on different browsers
    For now there is no -easy- way to correct this in canvasdraw.

    joke

    en réponse à : dashed arrows not dashed in canvasdraw #6237
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,

    This is clearly a bug in canvasdraw arrow(s)
    I will have to look into this…and see if there are any other mis behaviours with dashing,,,
    (other primitives like lines,hlines,segments etc do not show this error)

    size 400,400
    xrange -10,10
    yrange -10,10
    linewidth 2
    dashtype 4,2
    dsegment 0,0,5,5,red
    dsegment 0,0,-5,5,blue
    dsegment 0,0,5,-5,green
    dsegment 0,0,-5,-5,orange
    dashtype 2,6
    dhline 0,-5,red
    dhline 0,-4,blue
    dhline 0,-3,green
    dhline 0,-2,orange
    dvline -5,0,red
    dvline -4,0,blue
    dvline -3,0,green
    dvline -2,0,orange
    

    joke

    • Cette réponse a été modifiée le il y a 4 années et 4 mois par jm.evers.
    en réponse à : LaTex dans le champ description #6150
    jm.evers
    Participant
    Up
    0
    Down
    ::

    I stand corrected! and clearly missed the point…and thought is was TeX in plain HTML text…\(\frac{1}{2}\) works just fine…even in the « title » of a worksheet

    Joke

    en réponse à : LaTex dans le champ description #6146
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi again,
    Probably the easiest way for you would be to recompile wims.cgi, using in ~/src/exec.c : scripts/js/mathjax/MathJax.js?config=Accessible-full.js
    or try any other configuration (see ~/public_html/scripts/js/mathjax/config) not interfering with normal text…
    Make sure you enforce using MathJaX on all client browsers…

    Hope this gets you going

    Joke

    en réponse à : LaTex dans le champ description #6145
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,

    When you are sure MathJaX is loaded on all clients, you can always call it to interpret your TeX.

    On my systems -using KaTeX for all browsers- just a bit of code works fine:
    <span name="zoom_1" id="no_id" style="display:inline-block;" class="wims_katex">\frac{\pi}{4}</span>

    If the whole sheet descripton (or any other div/span element) is in a « wims_katex » class, every TeX string would be displayed nicely

    kind regards,
    Joke

    en réponse à : canvasdraw and dragfill #6128
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi Paul,

    If you want to use dynapi drag&drop, I’m not sure this will ever work, since the ‘image’ is generated using javascript.

    If you want not to use dynapi:
    inside a canvas window (the image) it is -for now- not possible to ‘group’ multiple objects for simultaneous mouse manipulation/movement…only if you use a slider for such combined objects.
    eg the group of objects, creating a domino, end with ‘killslider’

    But to be honest, there may be userfriendly ways to create an image shuffling exercise !

    If you need some help with canvasdraw, just send me an email.

    kind regards,
    Joke

    ps
    use command ‘latex x,y,LaTeX’ for creating TeX inside canvasdraw

    • Cette réponse a été modifiée le il y a 4 années et 5 mois par jm.evers.
    en réponse à : Direction of arc in canvasdraw #6125
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hello Erik,

    You are correct: the command userdraw arc,color could/should be improved!

    The ‘static’ way of using first 3 points (the second point is set to be the center point…) and then afterwards draw the arc is not very practical…and probably the way the ‘direction’ argument to the html5 canvas command arc(xc,yc,radius,start,end,direction) is determined, is not correct.

    As this is all amateur driven opensource stuff, you could just upload any improvements to SVN.
    (as long as the fly-like command syntax is unchanged)

    kind regards,
    Joke

    en réponse à : Linear dans canvasdraw #6112
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    Thank you for noticing!
    I’ve added affine transformations to the flydraw analogue command « text »

    Joke

    • Cette réponse a été modifiée le il y a 4 années et 5 mois par jm.evers.
    en réponse à : Restrictions d’accès : travail nocturne interdit #5988
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Just a thought:
    may be you could use a crontab for ‘wims’?

    If you want a single class/institute to be closed down completely (which is preferable for younger students/pupils), just rename/move it…and remove it from the ‘index’. Opening the class/institute is simply the reverse.

    joke

    • Cette réponse a été modifiée le il y a 4 années et 8 mois par jm.evers.
    • Cette réponse a été modifiée le il y a 4 années et 8 mois par jm.evers. Raison: typos
    en réponse à : Restrictions d’accès : travail nocturne interdit #5980
    jm.evers
    Participant
    Up
    0
    Down
    ::

    In my experience -High School usage- it is very prudent to disable access at night.
    Some pupils tend to get very insecure regarding taking digital exams…and will therefore exercise very deep into the night…or start very early…typical right before the actual exam.

    Since most of our pupils have (mobile) devices in their bedroom/study, parents do not have a clue about this behaviour.
    In conversations over the years (as of 2004) with parents there is a 100% support for closing down the server !

    We actually close down the apache server from 24:00 — 6:00
    (before the pandemic this was always 23:00 — 7:00)

    Joke

    • Cette réponse a été modifiée le il y a 4 années et 9 mois par jm.evers.
    en réponse à : Bug canvasdraw et/ou drawinput #5899
    jm.evers
    Participant
    Up
    0
    Down
    ::

    The ’empty string’ flaw in canvasdraw is corrected and uploaded to SVN
    Thank you for noticing!

    joke

    en réponse à : Bug canvasdraw et/ou drawinput #5898
    jm.evers
    Participant
    Up
    0
    Down
    ::

    forget the last example oef code…it was not correctly displayed in BBCode

    
    \text{test=wims(exec canvasdraw 
    size 200,200
    xrange 0,4
    yrange 0,4
    linewidth 5
    input 1,1,1,1,?
    latex 2,2,\Huge{\overline{B}})}
    \statement{  
    \test
    }
    en réponse à : Bug canvasdraw et/ou drawinput #5894
    jm.evers
    Participant
    Up
    0
    Down
    ::

    In canvasdraw the command input (from docs)

    @ input x,y,size,editable,value
    @ to set inputfield "readonly", use editable = 0
    @ if no preset 'value' is needed...use a 'space' as last item argument

    The last argument ‘value’ can not be an empty string…
    So if you have source code access to your wims server, you can quick fix this by editing scripts/oef/special/drawinput.phtml
    and add:

    blah blah
    !if $(reply$n_) = $empty
    !set reply$n_=?       
    !endif         
     !set codeinput=!append line input $[$x_],$[$y_],$(inputsize_tmp[2]),1,$(reply$n_) $ $ to $code
    !endif
    
    The \overline is probably eaten by some oef-script
    You could try a direct call to canvasdraw...
    

    \text{test=wims(exec canvasdraw
    size 200,200
    xrange 0,4
    yrange 0,4
    linewidth 5
    input 1,1,1,1,?
    latex 2,2,\Huge{\overline{B}})}
    \statement{
    \test
    }

    
    
    I will see if this can be changed within canvasdraw (e.g. accepting an empty string...)
    
    kind regards
    Joke
    
    
    • Cette réponse a été modifiée le il y a 4 années et 11 mois par jm.evers.
    • Cette réponse a été modifiée le il y a 4 années et 11 mois par jm.evers.
    • Cette réponse a été modifiée le il y a 4 années et 11 mois par jm.evers.
    en réponse à : Bug canvasdraw et/ou drawinput #5889
    jm.evers
    Participant
    Up
    0
    Down
    ::

    I’m not familiar with the ‘special; oef methods…but there are no input fields
    in your oef script…however in the ‘correct’ answer they are displayed
    dont know ask B. Perrin

    So you have to ask Bernadette Perrin…
    Inputfields are working fine in canvasdraw

    size 400,400
    xrange -10,10
    yrange -10,10
    linewidth 6
    point 1,2,red
    input 1,2,5,1, ?
    point -5,5,red
    input -5,5,5,1, ?
    point 6,-5,red
    input 6,-5,5,1, ?
    point -5,-8,red
    input -5,-8,5,1, ?
    
    • Cette réponse a été modifiée le il y a 4 années et 11 mois par jm.evers.
    • Cette réponse a été modifiée le il y a 4 années et 11 mois par jm.evers.
    en réponse à : Bug canvasdraw et/ou drawinput #5887
    jm.evers
    Participant
    Up
    1
    Down
    ::

    on https://wims.auto.u-psud.fr/
    overline on pariSud server...

    • Cette réponse a été modifiée le il y a 4 années et 11 mois par jm.evers.
    en réponse à : Bug canvasdraw et/ou drawinput #5886
    jm.evers
    Participant
    Up
    1
    Down
    ::

    \real{pnAsnB=1-pAsnB}
    should be \real{pnAsnB=1-\pAsnB}
    I guess…

    en réponse à : Bug canvasdraw et/ou drawinput #5883
    jm.evers
    Participant
    Up
    0
    Down
    ::

    The overline seems to work just fine…
    search for ‘direct’ or ‘direct exec’ in wims
    copy & paste this in the textarea
    execute by ‘canvasdraw’

    size 400,400
    xrange -10,10
    yrange -10,10
    fontfamily 148px Arial
    strokecolor green
    drag xy
    centered
    latex 0,0,\overline{B}
    

    joke

    • Cette réponse a été modifiée le il y a 4 années et 11 mois par jm.evers.
    en réponse à : Bug canvasdraw et/ou drawinput #5878
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Hi,
    I don’t know what the problem is, but pay attention:the command mathml is changed…It is now simply mathml x,y,mathmlcode
    And there is a probably simpler way of presenting TeX formatted typesetting using
    the new command latex x,y,TeXcode
    (please check if you are using a current version of canvasdraw)
    Bernadette Perrin has created a great/large help page within createxo.
    The rest of the exercise escapes my knowledge of the french language.
    Please post a simpler example of your issue with canvasdraw -preferably in direct exec !
    joke

    • Cette réponse a été modifiée le il y a 4 années et 11 mois par jm.evers.
    • Cette réponse a été modifiée le il y a 4 années et 11 mois par jm.evers. Raison: typos
    en réponse à : Crochets ouverts pour intervalles #5576
    jm.evers
    Participant
    Up
    0
    Down
    ::

    in TeX just use:
    \lbracket \rbracket
    \lbrace \rbrace
    \lpar \rpar

    joke

    en réponse à : lien hacké #5414
    jm.evers
    Participant
    Up
    0
    Down
    ::

    Don’t worry there was no ‘hack’ : the adress has changed « owner » and the link has changed it’s content…
    Besides: the informations on this page are no longer valid.
    Opera -as do all other browsers- will work with javascript/math-typesetting.

    joke

    • Cette réponse a été modifiée le il y a 5 années et 5 mois par jm.evers.
20 sujets de 21 à 40 (sur un total de 147)