Skip to content

Commit

Permalink
Extend recent SVG improvements to EMF/WMF
Browse files Browse the repository at this point in the history
- EMF and WMF (Windows metafiles) now provide a "choose custom dimensions" dialog when imported
- Embedded EMF and WMF sizes can now be overridden with user-defined import sizes during batch conversions
- EMF and WMF previews now work correctly in the batch process dialog (when creating the list of images to be processed)

To minimize code requirements, these formats simply "hijack" the normal SVG import dialog and make a few changes to make it work with Windows metafiles instead.
  • Loading branch information
tannerhelland committed Dec 10, 2022
1 parent 5db2e58 commit 18812e6
Show file tree
Hide file tree
Showing 19 changed files with 240 additions and 113 deletions.
8 changes: 4 additions & 4 deletions App/PhotoDemon/Languages/French.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>fr-FR</langid>
<langname>Français</langname>
<langversion>6.7.603</langversion>
<langversion>6.7.604</langversion>
<langstatus>Complete</langstatus>

<author>Jean Jacques Piedfort (orig. Frank Donckers)</author>
Expand Down Expand Up @@ -7171,7 +7171,7 @@ La mise à jour est traitée automatiquement en arrière-plan. Vous recevrez une
<translation>%1 options</translation>
</phrase>

<!-- Dialog_SVGImport.frm contains 3 phrases. One was a duplicate of an existing phrase, so only 2 new phrases were written to file. -->
<!-- Dialog_SVGImport.frm contains 5 phrases. 3 were duplicates of existing phrases, so only 2 new phrases were written to file. -->

<phrase>
<original>HDR image identified</original>
Expand Down Expand Up @@ -14043,8 +14043,8 @@ Si vous choisissez de désactiver les mises à jour, n'oubliez pas de visiter ph

<phrasecount>2653</phrasecount>

<!-- As of this build, PhotoDemon contains 5563 phrases. -->
<!-- 2910 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- As of this build, PhotoDemon contains 5565 phrases. -->
<!-- 2912 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- These 2653 phrases contain approximately 11461 total words. -->

</pdData>
8 changes: 4 additions & 4 deletions App/PhotoDemon/Languages/German.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>de-DE</langid>
<langname>Deutsch (German)</langname>
<langversion>9.0.25</langversion>
<langversion>9.0.26</langversion>
<langstatus>Up-to-date</langstatus>

<author>rk (ehem. Frank Donckers, Helmut Kuerbiss)</author>
Expand Down Expand Up @@ -7173,7 +7173,7 @@ Das Update wird automatisch im Hintergrund verarbeitet. Sie werden eine neue Ben
<translation>%1-Optionen</translation>
</phrase>

<!-- Dialog_SVGImport.frm contains 3 phrases. One was a duplicate of an existing phrase, so only 2 new phrases were written to file. -->
<!-- Dialog_SVGImport.frm contains 5 phrases. 3 were duplicates of existing phrases, so only 2 new phrases were written to file. -->

<phrase>
<original>HDR image identified</original>
Expand Down Expand Up @@ -14028,8 +14028,8 @@ Wenn Sie sich dennoch dafür entscheiden, Updates zu deaktivieren, vergessen Sie

<phrasecount>2653</phrasecount>

<!-- As of this build, PhotoDemon contains 5563 phrases. -->
<!-- 2910 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- As of this build, PhotoDemon contains 5565 phrases. -->
<!-- 2912 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- These 2653 phrases contain approximately 11461 total words. -->

</pdData>
8 changes: 4 additions & 4 deletions App/PhotoDemon/Languages/Indonesian.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>indo-ID</langid>
<langname>Indonesian</langname>
<langversion>8.9.1710</langversion>
<langversion>8.9.1711</langversion>
<langstatus>90% complete</langstatus>

<author>Ari Sohandri Putra</author>
Expand Down Expand Up @@ -7159,7 +7159,7 @@ Pembaruan otomatis pengolahan di latar belakang. Anda akan menerima pemberitahua
<translation></translation>
</phrase>

<!-- Dialog_SVGImport.frm contains 3 phrases. One was a duplicate of an existing phrase, so only 2 new phrases were written to file. -->
<!-- Dialog_SVGImport.frm contains 5 phrases. 3 were duplicates of existing phrases, so only 2 new phrases were written to file. -->

<phrase>
<original>HDR image identified</original>
Expand Down Expand Up @@ -14010,8 +14010,8 @@ Jika anda masih memilih untuk melumpuhkan Perbarui, jangan lupa untuk mengunjung

<phrasecount>2653</phrasecount>

<!-- As of this build, PhotoDemon contains 5563 phrases. -->
<!-- 2910 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- As of this build, PhotoDemon contains 5565 phrases. -->
<!-- 2912 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- These 2653 phrases contain approximately 11461 total words. -->

</pdData>
8 changes: 4 additions & 4 deletions App/PhotoDemon/Languages/Italian.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>it-IT</langid>
<langname>Italiano</langname>
<langversion>8.9.1618</langversion>
<langversion>8.9.1619</langversion>
<langstatus>Completa</langstatus>

<author>GioRock, ManfroMarce</author>
Expand Down Expand Up @@ -7171,7 +7171,7 @@ Tl'aggiornamento viene elaborato automaticamente in background. Riceverai una n
<translation>%1 opzioni</translation>
</phrase>

<!-- Dialog_SVGImport.frm contains 3 phrases. One was a duplicate of an existing phrase, so only 2 new phrases were written to file. -->
<!-- Dialog_SVGImport.frm contains 5 phrases. 3 were duplicates of existing phrases, so only 2 new phrases were written to file. -->

<phrase>
<original>HDR image identified</original>
Expand Down Expand Up @@ -14037,8 +14037,8 @@ Se si sceglie comunque di disabilitare gli aggiornamenti, non dimenticate di vis

<phrasecount>2653</phrasecount>

<!-- As of this build, PhotoDemon contains 5563 phrases. -->
<!-- 2910 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- As of this build, PhotoDemon contains 5565 phrases. -->
<!-- 2912 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- These 2653 phrases contain approximately 11461 total words. -->

</pdData>
8 changes: 4 additions & 4 deletions App/PhotoDemon/Languages/Macedonian.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>mk-MK</langid>
<langname>Македонски</langname>
<langversion>8.9.1712</langversion>
<langversion>8.9.1713</langversion>
<langstatus>80% complete</langstatus>

<author>Бобан Ѓерасимоски</author>
Expand Down Expand Up @@ -7163,7 +7163,7 @@ The update is automatically processing in the background. You will receive a ne
<translation></translation>
</phrase>

<!-- Dialog_SVGImport.frm contains 3 phrases. One was a duplicate of an existing phrase, so only 2 new phrases were written to file. -->
<!-- Dialog_SVGImport.frm contains 5 phrases. 3 were duplicates of existing phrases, so only 2 new phrases were written to file. -->

<phrase>
<original>HDR image identified</original>
Expand Down Expand Up @@ -14016,8 +14016,8 @@ If сеуште изберете да го исклучите ажурирања

<phrasecount>2653</phrasecount>

<!-- As of this build, PhotoDemon contains 5563 phrases. -->
<!-- 2910 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- As of this build, PhotoDemon contains 5565 phrases. -->
<!-- 2912 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- These 2653 phrases contain approximately 11461 total words. -->

</pdData>
8 changes: 4 additions & 4 deletions App/PhotoDemon/Languages/Master/MASTER.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>en-US</langid>
<langname>English (US) - MASTER COPY</langname>
<langversion>9.1.75</langversion>
<langversion>9.1.78</langversion>
<langstatus>Automatically generated from PhotoDemon's source code</langstatus>

<author>Tanner Helland</author>
Expand Down Expand Up @@ -7120,7 +7120,7 @@ The update is automatically processing in the background. You will receive a ne
<translation></translation>
</phrase>

<!-- Dialog_SVGImport.frm contains 3 phrases. One was a duplicate of an existing phrase, so only 2 new phrases were written to file. -->
<!-- Dialog_SVGImport.frm contains 5 phrases. 3 were duplicates of existing phrases, so only 2 new phrases were written to file. -->

<phrase>
<original>HDR image identified</original>
Expand Down Expand Up @@ -13961,8 +13961,8 @@ If you still choose to disable updates, don't forget to visit photodemon.org fro

<phrasecount>2653</phrasecount>

<!-- As of this build, PhotoDemon contains 5563 phrases. -->
<!-- 2910 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- As of this build, PhotoDemon contains 5565 phrases. -->
<!-- 2912 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- These 2653 phrases contain approximately 11461 total words. -->

</pdData>
8 changes: 4 additions & 4 deletions App/PhotoDemon/Languages/Polish.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>pl-PL</langid>
<langname>Polski</langname>
<langversion>9.0.11</langversion>
<langversion>9.0.12</langversion>
<langstatus>100% complete</langstatus>

<author>Ryszard</author>
Expand Down Expand Up @@ -7167,7 +7167,7 @@ The update is automatically processing in the background. You will receive a ne
<translation>opcje %1</translation>
</phrase>

<!-- Dialog_SVGImport.frm contains 3 phrases. One was a duplicate of an existing phrase, so only 2 new phrases were written to file. -->
<!-- Dialog_SVGImport.frm contains 5 phrases. 3 were duplicates of existing phrases, so only 2 new phrases were written to file. -->

<phrase>
<original>HDR image identified</original>
Expand Down Expand Up @@ -14028,8 +14028,8 @@ Jeśli nadal decydujesz się na wyłączenie aktualizacji, nie zapomnij odwiedzi

<phrasecount>2653</phrasecount>

<!-- As of this build, PhotoDemon contains 5563 phrases. -->
<!-- 2910 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- As of this build, PhotoDemon contains 5565 phrases. -->
<!-- 2912 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- These 2653 phrases contain approximately 11461 total words. -->

</pdData>
8 changes: 4 additions & 4 deletions App/PhotoDemon/Languages/Simplified_Chinese.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>zh-CN</langid>
<langname>简体中文</langname>
<langversion>9.0b1373.18</langversion>
<langversion>9.0b1373.19</langversion>
<langstatus>完成</langstatus>

<author>ChenLin(QQ:289778005), Lsbdx at 52pojie.cn, shishi</author>
Expand Down Expand Up @@ -7166,7 +7166,7 @@ The update is automatically processing in the background. You will receive a ne
<translation>%1 选项</translation>
</phrase>

<!-- Dialog_SVGImport.frm contains 3 phrases. One was a duplicate of an existing phrase, so only 2 new phrases were written to file. -->
<!-- Dialog_SVGImport.frm contains 5 phrases. 3 were duplicates of existing phrases, so only 2 new phrases were written to file. -->

<phrase>
<original>HDR image identified</original>
Expand Down Expand Up @@ -14022,8 +14022,8 @@ If you still choose to disable updates, don't forget to visit photodemon.org fro

<phrasecount>2653</phrasecount>

<!-- As of this build, PhotoDemon contains 5563 phrases. -->
<!-- 2910 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- As of this build, PhotoDemon contains 5565 phrases. -->
<!-- 2912 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- These 2653 phrases contain approximately 11461 total words. -->

</pdData>
8 changes: 4 additions & 4 deletions App/PhotoDemon/Languages/Spanish_(Mexico).xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>es-MX</langid>
<langname>español (México)</langname>
<langversion>9.0.15</langversion>
<langversion>9.0.16</langversion>
<langstatus>completo</langstatus>

<author>Plinio C Garcia, with help from DeepL.com</author>
Expand Down Expand Up @@ -7173,7 +7173,7 @@ La actualización se está procesando automáticamente en segundo plano. Recibi
<translation>opciones de %1</translation>
</phrase>

<!-- Dialog_SVGImport.frm contains 3 phrases. One was a duplicate of an existing phrase, so only 2 new phrases were written to file. -->
<!-- Dialog_SVGImport.frm contains 5 phrases. 3 were duplicates of existing phrases, so only 2 new phrases were written to file. -->

<phrase>
<original>HDR image identified</original>
Expand Down Expand Up @@ -14030,8 +14030,8 @@ If usted todavía elige desactivar las actualizaciones, no se olvide de visitar

<phrasecount>2653</phrasecount>

<!-- As of this build, PhotoDemon contains 5563 phrases. -->
<!-- 2910 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- As of this build, PhotoDemon contains 5565 phrases. -->
<!-- 2912 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- These 2653 phrases contain approximately 11461 total words. -->

</pdData>
8 changes: 4 additions & 4 deletions App/PhotoDemon/Languages/Spanish_(Spain).xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>es-ES</langid>
<langname>español (España)</langname>
<langversion>6.7.326</langversion>
<langversion>6.7.327</langversion>
<langstatus>completo</langstatus>

<author>Tecnorama</author>
Expand Down Expand Up @@ -7166,7 +7166,7 @@ La actualización se está procesando automáticamente en segundo plano. Recibir
<translation></translation>
</phrase>

<!-- Dialog_SVGImport.frm contains 3 phrases. One was a duplicate of an existing phrase, so only 2 new phrases were written to file. -->
<!-- Dialog_SVGImport.frm contains 5 phrases. 3 were duplicates of existing phrases, so only 2 new phrases were written to file. -->

<phrase>
<original>HDR image identified</original>
Expand Down Expand Up @@ -14023,8 +14023,8 @@ Si, con todo y con ello, elige desactivar las actualizaciones, no olvide visitar

<phrasecount>2653</phrasecount>

<!-- As of this build, PhotoDemon contains 5563 phrases. -->
<!-- 2910 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- As of this build, PhotoDemon contains 5565 phrases. -->
<!-- 2912 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- These 2653 phrases contain approximately 11461 total words. -->

</pdData>
8 changes: 4 additions & 4 deletions App/PhotoDemon/Languages/Traditional_Chinese.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>zh-TW</langid>
<langname>繁體中文</langname>
<langversion>7.0.286</langversion>
<langversion>7.0.287</langversion>
<langstatus>incomplete</langstatus>

<author>Chiahong Hong</author>
Expand Down Expand Up @@ -7131,7 +7131,7 @@ The update is automatically processing in the background. You will receive a ne
<translation></translation>
</phrase>

<!-- Dialog_SVGImport.frm contains 3 phrases. One was a duplicate of an existing phrase, so only 2 new phrases were written to file. -->
<!-- Dialog_SVGImport.frm contains 5 phrases. 3 were duplicates of existing phrases, so only 2 new phrases were written to file. -->

<phrase>
<original>HDR image identified</original>
Expand Down Expand Up @@ -13974,8 +13974,8 @@ If you still choose to disable updates, don't forget to visit photodemon.org fro

<phrasecount>2653</phrasecount>

<!-- As of this build, PhotoDemon contains 5563 phrases. -->
<!-- 2910 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- As of this build, PhotoDemon contains 5565 phrases. -->
<!-- 2912 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- These 2653 phrases contain approximately 11461 total words. -->

</pdData>
8 changes: 4 additions & 4 deletions App/PhotoDemon/Languages/Turkish.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>tr-TR</langid>
<langname>Türkçe (Turkish)</langname>
<langversion>1.0.15</langversion>
<langversion>1.0.16</langversion>
<langstatus>20% complete</langstatus>

<author>Anıl Yılmaz</author>
Expand Down Expand Up @@ -7145,7 +7145,7 @@ The update is automatically processing in the background. You will receive a ne
<translation>%1 seçenekler</translation>
</phrase>

<!-- Dialog_SVGImport.frm contains 3 phrases. One was a duplicate of an existing phrase, so only 2 new phrases were written to file. -->
<!-- Dialog_SVGImport.frm contains 5 phrases. 3 were duplicates of existing phrases, so only 2 new phrases were written to file. -->

<phrase>
<original>HDR image identified</original>
Expand Down Expand Up @@ -13986,8 +13986,8 @@ If you still choose to disable updates, don't forget to visit photodemon.org fro

<phrasecount>2653</phrasecount>

<!-- As of this build, PhotoDemon contains 5563 phrases. -->
<!-- 2910 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- As of this build, PhotoDemon contains 5565 phrases. -->
<!-- 2912 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- These 2653 phrases contain approximately 11461 total words. -->

</pdData>
8 changes: 4 additions & 4 deletions App/PhotoDemon/Languages/Vlaams.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<langid>nl-BE</langid>
<langname>Vlaams (Nederlands)</langname>
<langversion>8.9.1712</langversion>
<langversion>8.9.1713</langversion>
<langstatus>80% complete</langstatus>

<author>Frank Donckers</author>
Expand Down Expand Up @@ -7173,7 +7173,7 @@ De update wordt automatisch verwerkt op de achtergrond. U krijgt een nieuwe mede
<translation>opties voor %1</translation>
</phrase>

<!-- Dialog_SVGImport.frm contains 3 phrases. One was a duplicate of an existing phrase, so only 2 new phrases were written to file. -->
<!-- Dialog_SVGImport.frm contains 5 phrases. 3 were duplicates of existing phrases, so only 2 new phrases were written to file. -->

<phrase>
<original>HDR image identified</original>
Expand Down Expand Up @@ -14030,8 +14030,8 @@ If u nog steeds kiezen om updates uit te schakelen, vergeet dan niet om photodem

<phrasecount>2653</phrasecount>

<!-- As of this build, PhotoDemon contains 5563 phrases. -->
<!-- 2910 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- As of this build, PhotoDemon contains 5565 phrases. -->
<!-- 2912 are duplicates, so only 2653 unique phrases have been written to file. -->
<!-- These 2653 phrases contain approximately 11461 total words. -->

</pdData>
Loading

0 comments on commit 18812e6

Please sign in to comment.