Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added Canadian license plates format #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Added Canadian license plates format
This is some progress for #86.

The Canadian license plates change from province to province. Included here are only private vehicles (commercial vehicles have different formats).
DrDub committed Dec 23, 2021
commit fec7b31f166471e8de73dd31842461cdc11817b8
83 changes: 82 additions & 1 deletion src/main/resources/syntax.xml
Original file line number Diff line number Diff line change
@@ -65,4 +65,85 @@
<char content="o0123456789"/>
<char content="o0123456789"/>
</type>
</structure>

<!-- source https://en.wikipedia.org/wiki/Canadian_licence_plate_designs_and_serial_formats -->
<type name="canada_ab">
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
</type>
<type name="canada_bc">
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
</type>
<type name="canada_nb_nf_ns">
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
</type>
<type name="canada_nwt_nv">
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
</type>
<type name="canada_on">
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
</type>
<type name="canada_pe">
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
</type>
<type name="canada_qc">
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
</type>
<type name="canada_sk">
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
</type>
<type name="canada_yk">
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="abcdefghijklmno0pqrstuvwxyz"/>
<char content="0123456789"/>
<char content="0123456789"/>
</type>
<type name="canada_dnd">
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
<char content="0123456789"/>
</type>
</structure>