Add support for rendering Apple Wallet boarding passes
ClosedPublic

Authored by vkrause on Oct 21 2017, 10:47 AM.

Details

Summary

This covers showing boarding pass fields, styling, translations and
barcodes from the pkpass files. Good enough to get a quick overview of
your flight data, for actually getting into an aircraft KF5::Prison
is still missing support for the widely-used Aztec code though.

Diff Detail

Repository
R81 KDE PIM Addons
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
vkrause created this revision.Oct 21 2017, 10:47 AM
Restricted Application added a project: KDE PIM. · View Herald TranscriptOct 21 2017, 10:47 AM
knauss added a subscriber: knauss.Oct 21 2017, 9:10 PM

Can you please add a screenshot, how this looks like for black theme and white? Because often someone sets a forground color without background or visa versa :)

The colors are entirely provided by the pkpass file, so the host color scheme doesn't matter. The only exception is the barcode area, which is defined to be black on white for obvious reasons.

knauss accepted this revision.Oct 24 2017, 4:42 PM

looks fine.

Just one thing, does the fileformat knows in what language is the text? I'm thinking about languages that are right-to-left...

This revision is now accepted and ready to land.Oct 24 2017, 4:42 PM

Just one thing, does the fileformat knows in what language is the text? I'm thinking about languages that are right-to-left...

The pkpass file contains translations, for a set of languages defined by the creator. I have passes covering CJK languages, but none with RTL languages to test if that's displayed correctly. Anyone flown on Emirates recently? ;-)

This revision was automatically updated to reflect the committed changes.