gbv / SignaturenDruck

An electron application to print shelfmarks onto labels
https://verbundwiki.gbv.de/display/VZG/SignaturenDruck+der+ThULB+Jena
Creative Commons Zero v1.0 Universal
3 stars 2 forks source link

Need help decrypting signatures #62

Closed The-Ridder-HS closed 5 years ago

The-Ridder-HS commented 5 years ago

Good afternoon, We have problems decrypting the signature as soon as a minus character is included in the signature at the beginning. Example DRF-D 938 223. This signature cannot be resolved to a default small or large. This applies to all books with HDZ-F or all with a 4th and 5th letter or character

EliDeh commented 5 years ago

Hello, the signature does not match any of subModes regular expressions. To fix this issue: you could either change the regEx direclty in the defaultMode.json file, from: "regEx": "^(\\w+\\s[\\w\\.\\,]+)([\\s\\/]?)([^\\/\\:]*)([\\/\\:]?)(.*)$", to: "regEx": "^([\\w\\-]+\\s[\\w\\.\\,]+)([\\s\\/]?)([^\\/\\:]*)([\\/\\:]?)(.*)$",

or you could change it from the "Modus erstellen/anpassen" window and edit the regEx there, from: ^(\w+\s[\w\.\,]+)([\s\/]?)([^\/\:]*)([\/\:]?)(.*)$ to: ^([\w\-]+\s[\w\.\,]+)([\s\/]?)([^\/\:]*)([\/\:]?)(.*)$

The-Ridder-HS commented 5 years ago

Good morning, I just tried to test the settings, but as soon as I change the DefaultMode.json other, the possibility of the barcode scanner disappears. A new Defaultmode.json is also created. The program does not recognize settings in the program itself, no correct barcode is created.

German :: Ich habe eben die Einstellungen versucht zu Testen, sobald ich aber die DefaultMode.json ändere, verschwindet die Möglichkeit des Barcode Scanners. Zudem wird eine neue Defaultmode.json erstellt. Einstellungen im Programm selber erkennt das Programm auch nicht, es wird kein Richtiger Barcode erzeugt.

The-Ridder-HS commented 5 years ago

Fixed - If you start the program as an administrator and make the settings, the settings are not applied as a normal user.

German:: Behoben - Wenn man das Programm als Administrator startet und die Einstellungen vornimmt werden die Einstellungen übernommen als normaler User nicht.

The-Ridder-HS commented 5 years ago

A small problem still exists:

A "space" starts a new line.

Noticed at TZU-U 249 339

This is output as TZU-U 249 339

If we can fix that, it would be great

Kind regards Sören aka Shadowhawk

german:: Ein kleines Problem gibt es noch:

Bei einem "Leerzeichen" fängt er eine neue Zeile an.

Aufgefallen bei TZU-U 249 339

Dies wird ausgegeben als TZU-U 249 339

Könnten wir das noch beheben, wenn ja wäre das Super!

Mit freundlichen Grüßen Sören aka Shadowhawk

EliDeh commented 5 years ago

Ok, if we want to keep the layout of the label we could put everything on the first line. Either by editing the defaultMode.json: from: "result": ["$1$2", "$3$4", "$5$6"] to: "result": ["$1$2$3$4$5$6", "", ""]

or by changing it from the "Modus erstellen/anpassen" window and edit the line grouping there, from: $1$2 $3$4 $5$6 to: $1$2$3$4$5$6 ` `

The-Ridder-HS commented 5 years ago

Fixed thx a lot