Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (68)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 is the first MediaSPIP stable release.
    Its official release date is June 21, 2013 and is announced here.
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

Sur d’autres sites (6304)

  • FFMPEG Drag and Drop sh file

    29 avril 2021, par WFCDefi

    On Windows I have a simple batch file which I drop video files onto to convert to webms, it saves a lot of time as I prefer to just use the same configuration and don't care much about the names.

    


    @echo off 
echo. 
ffmpeg -i %1 -c:v libvpx-vp9 -quality good -cpu-used 2 -b:v 5000k -qmin 15 -qmax 45 -maxrate 500k -bufsize 1500k -framerate 60 -threads 8 -vf scale=-1:1080 -c:a libvorbis -b:a 192k -f webm %1.webm 
pause


    


    I know the .bat file won't really work in Linux (I'm on pop os so pretty much Ubuntu) so with the other lines removed and the %1 changed to $1 it works. It won't do anything if I try dragging and dropping a video file onto it though.

    


    I can type sudo then drag and drop the .sh file followed by a video into a terminal and press enter and it will have the same effect as dragging a video file onto a bat file in Windows.

    


    Is there a way to recreate dragging and dropping a file directly onto another and it executing in Linux or is the terminal the only way ?

    


  • Anomalie #4777 (Nouveau) : Les labels et chaines de langue avec ou sans deux points.

    8 mai 2021

    Des labels avec ou sans deux points...

    Les chaines de langues des labels, historiques de SPIP, ont parfois des deux points, parfois pas.

    Donc dès fois 'truc' => 'Truc', dès fois 'truc' => 'Truc :'
    C’est embêtant quand on veut quelque chose d’homogène.

    On se propose ici de réfléchir à une transition vers des chaines "sans deux points".

    uniformiser_label

    J’ai déjà introduit (dans SPIP 4.0-alpha) une fonction / filtre dans inc/utils.php et utilisée dans le plugin ’statistiques’ : uniformiser_label.
    Ce filtre, dans un squelette avec un idiome tel que <:module:chaine|uniformiser_label:> enlève les espaces divers et : qui pourraient être présents.

    uniformiser_label_inline ?

    Il faudrait trouver un autre filtre pour faire l’inverse : mettre systématiquement les deux points. Notamment pour des couples ou énumérations sur la même ligne "label : texte".
    Trouver un nom du filtre pour ça n’est pas évident ; par contre on pense avoir trouvé à peu près la méthode

    1. <span class="CodeRay"><span class="keyword">function</span> <span class="function">uniformiser_label_inline</span>(<span class="predefined-type">string</span> <span class="local-variable">$label</span>) : <span class="predefined-type">string</span> {
    2.     <span class="local-variable">$label</span> = uniformiser_label(<span class="local-variable">$label</span>);
    3.     <span class="keyword">return</span> _T(<span class="string"><span class="delimiter">'</span><span class="content">uniformiser_label_inline</span><span class="delimiter">'</span></span>, [<span class="string"><span class="delimiter">'</span><span class="content">label</span><span class="delimiter">'</span></span> => <span class="local-variable">$label</span>]);
    4. }
    5. <span class="comment">// avec la chaine de langue (pareil nom à trouver)</span>
    6. [
    7.     <span class="comment">// ...</span>
    8.     <span class="string"><span class="delimiter">'</span><span class="content">uniformiser_label_inline</span><span class="delimiter">'</span></span> => <span class="string"><span class="delimiter">'</span><span class="content">@label@ :</span><span class="delimiter">'</span></span>
    9. ]
    10. </span>

    Télécharger

    ou… uniformiser_label_enumeration

    Une autre solution pour la même chose, est de proposer de s’occuper directement des textes de couples "nom : texte" ou "nom : texte, texte, texte."
    Mais c’est peut être plus difficile pour gérer les traductions

    Exemple

    1. <span class="CodeRay"><span class="keyword">function</span> <span class="function">uniformiser_label_enumeration</span>(<span class="predefined-type">string</span> <span class="local-variable">$label</span>, ...<span class="local-variable">$enums</span> = []) : <span class="predefined-type">string</span> {
    2.     <span class="local-variable">$label</span> = uniformiser_label(<span class="local-variable">$label</span>);
    3.     <span class="comment">// la première entrée peut être un déjà un tableau ?</span>
    4.     <span class="keyword">if</span> (<span class="local-variable">$enums</span> <span class="keyword">and</span> <span class="predefined">is_array</span>(<span class="local-variable">$enums</span>[<span class="integer">0</span>])) {
    5.         <span class="local-variable">$enums</span>[<span class="integer">0</span>] = <span class="predefined">implode</span>(<span class="string"><span class="delimiter">'</span><span class="content">, </span><span class="delimiter">'</span></span>, <span class="local-variable">$enums</span>[<span class="integer">0</span>]);
    6.     }
    7.     <span class="local-variable">$enums</span> = <span class="predefined">implode</span>(<span class="string"><span class="delimiter">'</span><span class="content">, </span><span class="delimiter">'</span></span>, <span class="local-variable">$enums</span>);
    8.     <span class="keyword">return</span> <span class="predefined">trim</span>(_T(<span class="string"><span class="delimiter">'</span><span class="content">label_enumeration</span><span class="delimiter">'</span></span>, [<span class="string"><span class="delimiter">'</span><span class="content">label</span><span class="delimiter">'</span></span> => <span class="local-variable">$label</span>, <span class="string"><span class="delimiter">'</span><span class="content">enums</span><span class="delimiter">'</span></span> => <span class="local-variable">$enums</span>]));
    9. }
    10. <span class="comment">// avec la chaine de langue (pareil nom à trouver)</span>
    11. [
    12.     <span class="comment">// ...</span>
    13.     <span class="string"><span class="delimiter">'</span><span class="content">label_enumeration</span><span class="delimiter">'</span></span> => <span class="string"><span class="delimiter">'</span><span class="content">@label@ : @enums@.</span><span class="delimiter">'</span></span>
    14. ]
    15. </span>

    Télécharger

    Ça veut dire ici que toutes les langues ont "virgule" en séparateur…

    Quelques notes sur les deux points

    Je suppose qu’ulitiser le terme "deux_points" dans les chaines de langue ne marche pas car ce n’est pas très sémantique. Mais pas facile de trouver un super terme.

    https://www.noslangues-ourlanguages.gc.ca/fr/cles-de-la-redaction/deux-points

    « On utilise le deux-points pour annoncer ce qui s’en vient dans le texte, que ce soit un exemple, une énumération, une explication, une citation, un discours direct, une analyse ou un récit. Le deux-points sert aussi à annoncer un jugement, une synthèse, une conclusion, une cause, une conséquence, etc. »

  • avfilter/metadata : add intuitive labels for metadata values

    14 mai 2021, par Gyan Doshi
    avfilter/metadata : add intuitive labels for metadata values
    
    • [DH] doc/filters.texi
    • [DH] libavfilter/f_metadata.c