[latex3-commits] [git/LaTeX3-latex3-latex3] main: Revert "Support .mps files" (2246a9ed9)

Joseph Wright joseph.wright at morningstar2.co.uk
Wed Apr 13 14:14:58 CEST 2022


Repository : https://github.com/latex3/latex3
On branch  : main
Link       : https://github.com/latex3/latex3/commit/2246a9ed9b032bd41c957b65af544fb0357845d4

>---------------------------------------------------------------

commit 2246a9ed9b032bd41c957b65af544fb0357845d4
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Tue Apr 12 17:36:23 2022 +0100

    Revert "Support .mps files"
    
    This reverts commit 97e9d0932b867364b21cbee1eb69535d498c0788.
    Based on testing, there really is no fundamental reason
    to have a separate extension here:
    better to call the files EPS files, as that is what they are.


>---------------------------------------------------------------

2246a9ed9b032bd41c957b65af544fb0357845d4
 l3backend/CHANGELOG.md           |  1 -
 l3backend/l3backend-graphics.dtx | 58 ++++++++--------------------------------
 2 files changed, 11 insertions(+), 48 deletions(-)

diff --git a/l3backend/CHANGELOG.md b/l3backend/CHANGELOG.md
index 99b37b6f8..596d0b81f 100644
--- a/l3backend/CHANGELOG.md
+++ b/l3backend/CHANGELOG.md
@@ -8,7 +8,6 @@ this project uses date-based 'snapshot' version identifiers.
 
 ### Added
 - Support for SVG graphic inclusion by `dvisvgm`
-- Support for .mps files with all backends
 
 ## [2022-04-10]
 
diff --git a/l3backend/l3backend-graphics.dtx b/l3backend/l3backend-graphics.dtx
index 08cbb0087..a495fce95 100644
--- a/l3backend/l3backend-graphics.dtx
+++ b/l3backend/l3backend-graphics.dtx
@@ -86,33 +86,22 @@
 % \begin{variable}{\l_graphics_search_ext_seq}
 %    \begin{macrocode}
 \@@_backend_loaded:n
-  { \seq_set_from_clist:Nn \l_graphics_search_ext_seq { .eps , .mps , .ps } }
+  { \seq_set_from_clist:Nn \l_graphics_search_ext_seq { .eps , .ps } }
 %    \end{macrocode}
 % \end{variable}
 %
-% \begin{macro}
-%   {
-%     \@@_backend_getbb_eps:n ,
-%     \@@_backend_getbb_mps:n ,
-%     \@@_backend_getbb_ps:n
-%   }
+% \begin{macro}{\@@_backend_getbb_eps:n, \@@_backend_getbb_ps:n}
 %   Simply use the generic function.
 %    \begin{macrocode}
 \@@_backend_loaded:n
   {
     \cs_new_eq:NN \@@_backend_getbb_eps:n \@@_read_bb:n
-    \cs_new_eq:NN \@@_backend_getbb_mps:n \@@_read_bb:n
     \cs_new_eq:NN \@@_backend_getbb_ps:n \@@_read_bb:n
   }
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}
-%   {
-%     \@@_backend_include_eps:n ,
-%     \@@_backend_include_mps:n ,
-%     \@@_backend_include_ps:n
-%   }
+% \begin{macro}{\@@_backend_include_eps:n, \@@_backend_include_ps:n}
 %  The special syntax is relatively clear here: remember we need PostScript
 %  sizes here.
 %    \begin{macrocode}
@@ -127,7 +116,6 @@
         ury = \dim_to_decimal_in_bp:n \l_@@_ury_dim
       }
   }
-\cs_new_eq:NN \@@_backend_include_mps:n \@@_backend_include_eps:n
 \cs_new_eq:NN \@@_backend_include_ps:n \@@_backend_include_eps:n
 %    \end{macrocode}
 % \end{macro}
@@ -155,7 +143,7 @@
   {
     \seq_set_from_clist:Nn
       \l_graphics_search_ext_seq
-      { .pdf , .eps , .mps , .ps , .png , .jpg , .jpeg  }
+      { .pdf , .eps , .ps , .png , .jpg , .jpeg  }
   }
 %    \end{macrocode}
 % \end{variable}
@@ -294,19 +282,9 @@
 %    \end{macrocode}
 % \end{macro}
 %
-% \begin{macro}
-%   {
-%     \@@_backend_getbb_eps:n ,
-%     \@@_backend_getbb_mps:n ,
-%     \@@_backend_getbb_ps:n
-%   }
+% \begin{macro}{\@@_backend_getbb_eps:n, \@@_backend_getbb_ps:n}
 % \begin{macro}{\@@_backend_getbb_eps:nm}
-% \begin{macro}
-%   {
-%     \@@_backend_include_eps:n ,
-%     \@@_backend_include_mps:n ,
-%     \@@_backend_include_ps:n
-%   }
+% \begin{macro}{\@@_backend_include_eps:n, \@@_backend_include_ps:n}
 % \begin{variable}
 %   {\l_@@_backend_dir_str, \l_@@_backend_name_str, \l_@@_backend_ext_str}
 %   EPS graphics may be included in \LuaTeX{}/pdfTeX{} by conversion to
@@ -336,7 +314,6 @@
           }
           {#1}
      }
-    \cs_new_eq:NN \@@_backend_getbb_mps:n \@@_backend_getbb_eps:n
     \cs_new_eq:NN \@@_backend_getbb_ps:n \@@_backend_getbb_eps:n
     \cs_new_protected:Npn \@@_backend_getbb_eps:nn #1#2
       {
@@ -362,7 +339,6 @@
               }
           }
       }
-    \cs_new_eq:NN \@@_backend_include_mps:n \@@_backend_include_eps:n
     \cs_new_eq:NN \@@_backend_include_ps:n \@@_backend_include_eps:n
   }
 %    \end{macrocode}
@@ -398,15 +374,14 @@
 \@@_backend_loaded:n
   {
     \seq_set_from_clist:Nn \l_graphics_search_ext_seq
-      { .pdf , .eps , .mps , .ps , .png , .jpg ., jpeg , .bmp }
+      { .pdf , .eps , .ps , .png , .jpg ., jpeg , .bmp }
    }
 %    \end{macrocode}
 % \end{variable}
 %
 % \begin{macro}
 %   {
-%     \@@_backend_getbb_eps:n , \@@_backend_getbb_mps:n ,
-%     \@@_backend_getbb_ps:n ,
+%     \@@_backend_getbb_eps:n , \@@_backend_getbb_ps:n ,
 %     \@@_backend_getbb_jpg:n , \@@_backend_getbb_jpeg:n ,
 %     \@@_backend_getbb_pdf:n , \@@_backend_getbb_png:n  ,
 %     \@@_backend_getbb_bmp:n
@@ -417,7 +392,6 @@
 \@@_backend_loaded:n
   {
     \cs_new_eq:NN \@@_backend_getbb_eps:n \@@_read_bb:n
-    \cs_new_eq:NN \@@_backend_getbb_mps:n \@@_read_bb:n
     \cs_new_eq:NN \@@_backend_getbb_ps:n \@@_read_bb:n
   }
 %<*dvipdfmx>
@@ -449,8 +423,7 @@
 %
 % \begin{macro}
 %   {
-%     \@@_backend_include_eps:n , \@@_backend_include_mps:n ,
-%     \@@_backend_include_ps:n ,
+%     \@@_backend_include_eps:n , \@@_backend_include_ps:n ,
 %     \@@_backend_include_jpg:n , \@@_backend_include_jpseg:n ,
 %     \@@_backend_include_pdf:n , \@@_backend_include_png:n ,
 %     \@@_backend_include_bmp:n ,
@@ -474,7 +447,6 @@
         ury = \dim_to_decimal_in_bp:n \l_@@_ury_dim
       }
   }
-\cs_new_eq:NN \@@_backend_include_mps:n \@@_backend_include_eps:n
 \cs_new_eq:NN \@@_backend_include_ps:n \@@_backend_include_eps:n
 \cs_new_protected:Npn \@@_backend_include_jpg:n #1
   { \@@_backend_include_auxi:nn {#1} { image } }
@@ -713,7 +685,7 @@
   {
     \seq_set_from_clist:Nn
       \l_graphics_search_ext_seq
-      { .svg , .pdf , .eps , .mps , .ps , .png , .jpg , .jpeg }
+      { .svg , .pdf , .eps , .ps , .png , .jpg , .jpeg }
   }
 %    \end{macrocode}
 % \end{variable}
@@ -822,18 +794,12 @@
 % \end{macro}
 % \end{macro}
 %
-% \begin{macro}
-%   {
-%     \@@_backend_getbb_eps:n ,
-%     \@@_backend_getbb_mps:n ,
-%     \@@_backend_getbb_ps:n
-%   }
+% \begin{macro}{\@@_backend_getbb_eps:n, \@@_backend_getbb_ps:n}
 %   Simply use the generic function.
 %    \begin{macrocode}
 \@@_backend_loaded:n
   {
     \cs_new_eq:NN \@@_backend_getbb_eps:n \@@_read_bb:n
-    \cs_new_eq:NN \@@_backend_getbb_mps:n \@@_read_bb:n
     \cs_new_eq:NN \@@_backend_getbb_ps:n \@@_read_bb:n
   }
 %    \end{macrocode}
@@ -868,7 +834,6 @@
 % \begin{macro}
 %   {
 %     \@@_backend_include_eps:n ,
-%     \@@_backend_include_mps:n ,
 %     \@@_backend_include_ps:n  ,
 %     \@@_backend_include_pdf:n
 %   }
@@ -878,7 +843,6 @@
 %    \begin{macrocode}
 \cs_new_protected:Npn \@@_backend_include_eps:n #1
   { \@@_backend_include:nn { PSfile } {#1} }
-\cs_new_eq:NN \@@_backend_include_mps:n \@@_backend_include_eps:n
 \cs_new_eq:NN \@@_backend_include_ps:n \@@_backend_include_eps:n
 \cs_new_protected:Npn \@@_backend_include_pdf:n #1
   { \@@_backend_include:nn { pdffile } {#1} }





More information about the latex3-commits mailing list.