mcc2 1.5.1 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c0644a22468b1f2859c31b47904bc3434bb74e241c58b0d98b6f7c50ee602b4
4
- data.tar.gz: e424eb73bcf7a35e21ad822d7660b9cf1933cd66795058cbc78f5dd81d230d21
3
+ metadata.gz: 6a08ba5a70ae6c9037682ade7613288e942d03f0414138363263774a629eb230
4
+ data.tar.gz: 92f09489f9bc5d51b219f9f8e759c88733b84879fdecbcfaa12e879b12fe506e
5
5
  SHA512:
6
- metadata.gz: 347b50b032706fe1484a94d2e3985b4747d4079868bdec9f0c68b4dc500276b84a55f36fbcee4142f1134580f7e936ca7af301e2b7eb66d05361402ed26798e7
7
- data.tar.gz: 7a95636ed27195bf9b000c12955d8239276933b3d6c2fd335378c62403204bfa18accc40cc9e9e6a2c865263ea5e83739ce567af0fd367889a31332b2836b27d
6
+ metadata.gz: 82eb11ee4eb3970afe30618e14cc134853bf2cb421b50fb7ce9bb642476cfd439762fa2445933775111407e3a4e56f41a41893004654acb27309987b97591bf8
7
+ data.tar.gz: ba7b7fbfcfb13e1adf97cdf29e656d552b411332115960254ce9328e8f546ec8743af7863da1fb370865ccf5729578178a64b312a70972c205746506cce3ce97
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/mcc2/layout.rb CHANGED
@@ -177,9 +177,11 @@ module Mcc2
177
177
  unless layout_file.warnings.empty?
178
178
  wa = layout_file.warnings.join("\n\n")
179
179
 
180
- msg_box = FXMessageBox.new(@parent.app, I18n.t(:open_layout_file_warning, default: "Warnung beim Laden von %{filename}", filename:), wa, opts: MBOX_OK, ic: loadImage("mcc2/images/messagebox_warning.png"))
181
- msg_box.create if @parent.created?
182
- msg_box.show(PLACEMENT_OWNER)
180
+ @parent.app.addChore do
181
+ msg_box = FXMessageBox.new(@parent.app, I18n.t(:open_layout_file_warning, default: "Warnung beim Laden von %{filename}", filename:), wa, opts: MBOX_OK, ic: loadImage("mcc2/images/messagebox_warning.png"))
182
+ msg_box.create
183
+ msg_box.show(PLACEMENT_OWNER)
184
+ end
183
185
  end
184
186
  end
185
187
 
@@ -282,9 +282,7 @@ PRINT 1
282
282
  # and object's Y means the text baseline, not the bounding box.
283
283
  if filever < 4
284
284
  @warnings << I18n.t(:open_layout_old_text_box, default: <<~EOT)
285
- Diese Datei ist noch mit Textobjekten ohne Beachtung der Rahmengröße gespeichert.
286
- Die Rahmengröße der Textobjekte wurde nun automatisch auf den des Beispieltextes gesetzt.
287
- Evtl. muss aber eine Anpassung für die variablen Daten erfolgen.
285
+ Diese Datei wurde mit MCC2 version < 1.5.0 erstellt und wurde nun konvertiert.
288
286
 
289
287
  Bitte prüfen Sie, dass alle Texte an der richtigen Position stehen.
290
288
  EOT
@@ -349,7 +349,9 @@ module Mcc2
349
349
  if data && !data.empty?
350
350
  font_info = get_font_info(font, go)
351
351
  context = pango_font_map.create_context
352
- layout = Pango::Layout.new(context)
352
+ context.resolution = dpi
353
+ context.round_glyph_positions = false
354
+ layout = Pango::Layout.new(context)
353
355
 
354
356
  pango_font = get_pango_font(font_info, pt(fontsize))
355
357
  layout.font_description = pango_font
data/lib/mcc2/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Mcc2
2
- VERSION = "1.5.1"
2
+ VERSION = "1.5.2"
3
3
  end
data/locales/en.yml CHANGED
@@ -435,19 +435,15 @@ en:
435
435
  Please set the correct data source type in the layout properties
436
436
  and save the settings.
437
437
  open_layout_old_barby: |
438
- This file still uses Barby barcodes instead of the newer Zint barcodes.
438
+ This file uses Barby barcodes instead of the newer Zint barcodes.
439
439
 
440
440
  Therefore, all barcodes must be checked and, if necessary, readjusted!
441
441
 
442
442
  This warning will disappear once the file is saved.
443
443
  open_layout_old_text_box: |
444
- This file still contains text objects without regard to their frame size.
444
+ This file was created with an MCC2 version < 1.5.0 and has now been converted.
445
445
 
446
- The frame size of the text objects has now been automatically set to that of the sample text.
447
-
448
- However, adjustments may be necessary for the variable data.
449
-
450
- Please verify that all text is positioned correctly.
446
+ Please verify that all text elements are in the correct position.
451
447
  open_layout_version_error: The file %{filename} is structured according to version %{filever}, but this program can only process versions %{supported}.
452
448
  preview_dpi_and_print_differ: The barcode DPI for the preview (%{preview_dpi}) and the print version (%{print_dpi}) differ. Please adjust the DPI and re-check the barcodes!
453
449
  preview_error_printing_exception:
data/locales/rs.yml CHANGED
@@ -441,13 +441,9 @@ rs:
441
441
 
442
442
  Ово упозорење ће нестати када се датотека сачува.
443
443
  open_layout_old_text_box: |
444
- Ова датотека и даље садржи текстуалне објекте без обзира на величину оквира.
444
+ Ова датотека је креирана помоћу верзије MCC2 < 1.5.0 и сада је конвертована.
445
445
 
446
- Величина оквира текстуалних објеката је сада аутоматски подешена на величину узорка текста.
447
-
448
- Међутим, могу бити потребна подешавања за променљиве податке.
449
-
450
- Молимо вас да проверите да ли је сав текст правилно позициониран.
446
+ Молимо вас да проверите да ли се сви текстуални елементи налазе на исправним позицијама.
451
447
  open_layout_version_error: Датотека %{filename} је структурирана према верзији %{filever}, али овај програм може да обрађује само верзије %{supported}.
452
448
  preview_dpi_and_print_differ: DPI вредности бар-кода за преглед (%{preview_dpi}) и верзију за штампу (%{print_dpi}) се разликују. Молимо вас да подесите DPI и поново проверите бар-кодове!
453
449
  preview_error_printing_exception:
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mcc2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lars Kanis
metadata.gz.sig CHANGED
Binary file