Re: Spip 4 et plugin pdf.js
<[email protected]> Thu, 13 May 2021 10:53:27 +0200
| Newsgroups | gmane.comp.web.spip.user |
|---|---|
| Message-ID | <[email protected]> |
This is a multipart message in MIME format. --===============0373689138== Content-Type: multipart/alternative; boundary="----=_NextPart_000_003C_01D747E6.359498A0" Content-Language: fr This is a multipart message in MIME format. ------=_NextPart_000_003C_01D747E6.359498A0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello =F0=9F=98=8A Plugin.xml ne sert que pour spip avant spip 3.0.0 ! Pour spip 3.1/3.2/4.0 c=E2=80=99est le fichier paquet.xml que svp = regarde et donc, c=E2=80=99est dans ce fichier qu=E2=80=99il faut = changer la compatibilit=C3=A9 pour faire un essai ! En revanche quand il s=E2=80=99agit de faire un commit, il faut faire le = faire dans les deux fichiers ! =20 Cela dit, le mieux =C3=A9tant pour spip 4 de faire une branche avec = uniquement comme compatibilit=C3=A9 mini spip 4.0.0-alpha =F0=9F=98=8A Franck =20 De : Luc Mamin <[email protected]>=20 Envoy=C3=A9 : jeudi 13 mai 2021 09:18 =C3=80 : Spip <[email protected]> Objet : Re: [Spip] Spip 4 et plugin pdf.js =20 Avec Spip 3.3.dev, cela fonctionnait. Le pb, c'est qu'aujourd'hui avec Spip 4.0.0-alpha, le plugin pdf.js ne = peut m=C3=AAme pas s'installer :=20 La version pdf.js 0.6.5 reste marqu=C3=A9e "version incompatible", = m=C3=AAme en ayant chang=C3=A9 la borne de compatibilit=C3=A9 dans = plugin.xml. @+ Luc Le 13/05/2021 =C3=A0 08:53, Josiane ALETTO a =C3=A9crit : dans une discussion pr=C3=A9c=C3=A8dente, j'ai indiqu=C3=A9 que j'avais = eu le pb en 3.3 ( pas teste 4.0) et que je l'avais r=C3=A9gl=C3=A9 en = ajoutant un fichier file.html ,qui traitait aussi oembed , dans le = repertoire modele avec le contenu suuivant. Je pense que les = developpeurs qui connaissent mieux le fonctionnement du moteur de spip = regardent pourquoi on doit faire cela pour appeller le modele du = plugin....=20 =20 <BOUCLE_doc(DOCUMENTS) {id_document=3D#ENV{id,#ENV{id_document}}}> [(#EXTENSION|=3D=3D{pdf}|oui)=20 [(#PLUGIN{pdfjs}|oui) = [(#MODELE{emb_pdf,env,id_document,largeur=3D100%,hauteur=3D1050})]=20 ]=20 [(#PLUGIN{pdfjs}|non) =20 <iframe src=3D"#URL_DOCUMENT" width=3D"100%" = height=3D"#ENV{hauteur,1050}px" [ title=3D"(#TITRE|attribut_html)"] = name=3D"PDF_#ID_DOCUMENT" SCROLLING=3D"yes" allowfullscreen ></iframe> = =20 ] ] [(#EXTENSION|=3D=3D{html}|oui) [(#PLUGIN{oembed}|oui) [(#MODELE{oembed,url=3D#OEMBED})] ] [(#PLUGIN{oembed}|non) = <INCLURE{fond=3Dplugins-dist/medias/modeles/file,env} /> ] ] [(#EXTENSION|=3D=3D{pdf}|non)=20 [(#EXTENSION|=3D=3D{html}|non) <INCLURE{fond=3Dplugins-dist/medias/modeles/file,env} /> ] ] </BOUCLE_doc> =20 est-ce que tu peux tester ou adapter ce modele=20 =20 J'a aussi une version du fichier file.html et du plugin adapt=C3=A9e au = niveau css pour une meilleure pr=C3=A9sentation sur mobile.=20 =20 =20 =20 =20 =20 > Message du 13/05/21 07:32 > De : "Luc Mamin" <mailto:[email protected]> <[email protected]> > A : "Spip" <mailto:[email protected]> <[email protected]> > Copie =C3=A0 :=20 > Objet : [Spip] Spip 4 et plugin pdf.js >=20 >=20 > Bonjour > J'=C3=A9cris ici, et pas sur "discuter.spip.net" parce qu'il n'y a pas = d'urgence vitale. > Pour pr=C3=A9parer la venue de Spip 4, je fais des essais sous Spip = 4.0.0-alpha. Le plugin pdf.js = <https://contrib.spip.net/Lecteur-pdf-java-script-pdf-js> ne =C2=AB = passe =C2=BB pas, m=C3=AAme apr=C3=A8s avoir chang=C3=A9 les bornes de = compatibilit=C3=A9. Si d=E2=80=99aventure quelqu=E2=80=99un=C2=B7e savait si ce plugin sera = actualis=C3=A9 pour Spip 4... Merci. > Luc > =20 _______________________________________________ liste spip [email protected] <mailto:[email protected]> - d=C3=A9sabonnement : envoyer un = mail =C3=A0 [email protected] <mailto:[email protected]>=20 Archives : https://www.mail-archive.com/[email protected]/maillist.html Infos : https://listes.rezo.net/mailman/listinfo/spip Documentation de SPIP : http://www.spip.net/ Irc : de l'aide =C3=A0 toute heure : http://spip.net/irc ------=_NextPart_000_003C_01D747E6.359498A0 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta = http-equiv=3DContent-Type content=3D"text/html; charset=3Dutf-8"><meta = name=3DGenerator content=3D"Microsoft Word 15 (filtered = medium)"><style><!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; font-size:11.0pt; font-family:"Calibri",sans-serif;} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} span.EmailStyle19 {mso-style-type:personal-reply; font-family:"Calibri",sans-serif; color:windowtext;} .MsoChpDefault {mso-style-type:export-only; font-size:10.0pt;} @page WordSection1 {size:612.0pt 792.0pt; margin:70.85pt 70.85pt 70.85pt 70.85pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--></head><body lang=3DFR link=3Dblue = vlink=3Dpurple style=3D'word-wrap:break-word'><div = class=3DWordSection1><p class=3DMsoNormal><span = style=3D'mso-fareast-language:EN-US'>Hello </span><span = style=3D'font-family:"Segoe UI = Emoji",sans-serif;mso-fareast-language:EN-US'>😊</span><span = style=3D'mso-fareast-language:EN-US'><o:p></o:p></span></p><p = class=3DMsoNormal><span style=3D'mso-fareast-language:EN-US'>Plugin.xml = ne sert que pour spip avant spip 3.0.0 !<o:p></o:p></span></p><p = class=3DMsoNormal><span style=3D'mso-fareast-language:EN-US'>Pour spip = 3.1/3.2/4.0 c=E2=80=99est le fichier paquet.xml que svp regarde et donc, = c=E2=80=99est dans ce fichier qu=E2=80=99il faut changer la = compatibilit=C3=A9 pour faire un essai !<o:p></o:p></span></p><p = class=3DMsoNormal><span style=3D'mso-fareast-language:EN-US'>En revanche = quand il s=E2=80=99agit de faire un commit, il faut faire le faire dans = les deux fichiers !<o:p></o:p></span></p><p class=3DMsoNormal><span = style=3D'mso-fareast-language:EN-US'><o:p> </o:p></span></p><p = class=3DMsoNormal><span style=3D'mso-fareast-language:EN-US'>Cela dit, = le mieux =C3=A9tant pour spip 4 de faire une branche avec uniquement = comme compatibilit=C3=A9 mini spip 4.0.0-alpha </span><span = style=3D'font-family:"Segoe UI = Emoji",sans-serif;mso-fareast-language:EN-US'>😊</span><span = style=3D'mso-fareast-language:EN-US'><o:p></o:p></span></p><p = class=3DMsoNormal><span = style=3D'mso-fareast-language:EN-US'>Franck<o:p></o:p></span></p><p = class=3DMsoNormal><span = style=3D'mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><di= v style=3D'border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm = 0cm 0cm'><p class=3DMsoNormal><b>De :</b> Luc Mamin = <[email protected]> <br><b>Envoy=C3=A9 :</b> jeudi 13 mai = 2021 09:18<br><b>=C3=80 :</b> Spip = <[email protected]><br><b>Objet :</b> Re: [Spip] Spip 4 et plugin = pdf.js<o:p></o:p></p></div></div><p = class=3DMsoNormal><o:p> </o:p></p><p>Avec Spip 3.3.dev, cela = fonctionnait.<o:p></o:p></p><p>Le pb, c'est qu'aujourd'hui avec Spip = 4.0.0-alpha, le plugin pdf.js ne peut m=C3=AAme pas s'installer : <br>La = version pdf.js 0.6.5 reste marqu=C3=A9e "version = incompatible", m=C3=AAme en ayant chang=C3=A9 la borne de = compatibilit=C3=A9 dans = plugin.xml.<o:p></o:p></p><p>@+<br>Luc<o:p></o:p></p><div><p = class=3DMsoNormal>Le 13/05/2021 =C3=A0 08:53, Josiane ALETTO a = =C3=A9crit :<o:p></o:p></p></div><blockquote = style=3D'margin-top:5.0pt;margin-bottom:5.0pt'><p>dans une discussion = pr=C3=A9c=C3=A8dente, j'ai indiqu=C3=A9 que j'avais eu le pb en 3.3 ( = pas teste 4.0) et que je l'avais r=C3=A9gl=C3=A9 en ajoutant un = fichier file.html ,qui traitait aussi oembed , dans le repertoire = modele avec le contenu suuivant. Je pense que les developpeurs qui = connaissent mieux le fonctionnement du moteur de spip regardent pourquoi = on doit faire cela pour appeller le modele du plugin.... = <o:p></o:p></p><p> <o:p></o:p></p><p><BOUCLE_doc(DOCUMENTS) = {id_document=3D#ENV{id,#ENV{id_document}}}><br> [(#EXTENSION|=3D=3D= {pdf}|oui) <br> [(#PLUGIN{pdfjs}|oui) = [(#MODELE{emb_pdf,env,id_document,largeur=3D100%,hauteur=3D1050})] = <br> ] <br> = [(#PLUGIN{pdfjs}|non) <br> = <iframe = src=3D"#URL_DOCUMENT" width=3D"100%" = height=3D"#ENV{hauteur,1050}px" [ = title=3D"(#TITRE|attribut_html)"] = name=3D"PDF_#ID_DOCUMENT" SCROLLING=3D"yes" = allowfullscreen ></iframe> <br> = ]<br> ]<br> = [(#EXTENSION|=3D=3D{html}|oui)<br> = [(#PLUGIN{oembed}|oui) = [(#MODELE{oembed,url=3D#OEMBED})] ]<br> = [(#PLUGIN{oembed}|non) = <INCLURE{fond=3Dplugins-dist/medias/modeles/file,env} /> = ]<br> ]<br><br> [(#EXTENSION|=3D=3D{pdf}|non) = <br> = [(#EXTENSION|=3D=3D{html}|non)<br> = = <INCLURE{fond=3Dplugins-dist/medias/modeles/file,env} = /><br> = ]<br> = ]<br></BOUCLE_doc><o:p></o:p></p><p> <o:p></o:p></p><p>est-ce = que tu peux tester ou adapter ce modele = <o:p></o:p></p><p> <o:p></o:p></p><p>J'a aussi une version du = fichier file.html et du plugin adapt=C3=A9e au niveau css pour une = meilleure pr=C3=A9sentation sur mobile. = <o:p></o:p></p><p> <o:p></o:p></p><p> <o:p></o:p></p><p> <= o:p></o:p></p><p> <o:p></o:p></p><p> <o:p></o:p></p><blockquote= style=3D'border:none;border-left:solid red 1.5pt;padding:0cm 0cm 0cm = 4.0pt;margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'><p = class=3DMsoNormal>> Message du 13/05/21 07:32<br>> De : "Luc = Mamin" <a = href=3D"mailto:[email protected]"><[email protected]></a><br>&g= t; A : "Spip" <a = href=3D"mailto:[email protected]"><[email protected]></a><br>> Copie = =C3=A0 : <br>> Objet : [Spip] Spip 4 et plugin pdf.js<br>> = <br>> <o:p></o:p></p><p>> Bonjour<o:p></o:p></p><p>> = J'=C3=A9cris ici, et pas sur "discuter.spip.net" parce qu'il = n'y a pas d'urgence vitale.<o:p></o:p></p><p>> Pour pr=C3=A9parer la = venue de Spip 4, je fais des essais sous Spip 4.0.0-alpha.<br>Le <a = href=3D"https://contrib.spip.net/Lecteur-pdf-java-script-pdf-js">plugin = pdf.js</a> ne =C2=AB passe =C2=BB pas, m=C3=AAme apr=C3=A8s = avoir chang=C3=A9 les bornes de compatibilit=C3=A9.<br>Si = d=E2=80=99aventure quelqu=E2=80=99un=C2=B7e savait si ce plugin sera = actualis=C3=A9 pour Spip 4...<br>Merci.<o:p></o:p></p><p>> = Luc<br>><o:p></o:p></p><div = id=3D"grammalecte_menu_main_button_shadow_host"><p = class=3DMsoNormal> <o:p></o:p></p></div><p = class=3DMsoNormal><br><br><br>___________________________________________= ____<br>liste spip<br><a href=3D"mailto:[email protected]">[email protected]</a> = - d=C3=A9sabonnement : envoyer un mail =C3=A0 <a = href=3D"mailto:[email protected]">[email protected]</a><br><br>Archives = : <a = href=3D"https://www.mail-archive.com/[email protected]/maillist.html">https:/= /www.mail-archive.com/[email protected]/maillist.html</a><br><br>Infos : <a = href=3D"https://listes.rezo.net/mailman/listinfo/spip">https://listes.rez= o.net/mailman/listinfo/spip</a><br><br>Documentation de SPIP : <a = href=3D"http://www.spip.net/">http://www.spip.net/</a><br><br>Irc : de = l'aide =C3=A0 toute heure : <a = href=3D"http://spip.net/irc">http://spip.net/irc</a><o:p></o:p></p></bloc= kquote></blockquote></div></body></html> ------=_NextPart_000_003C_01D747E6.359498A0-- --===============0373689138== Content-Type: text/plain; charset="iso-8859-1" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline