Skip to content

Commit

Permalink
Added Canadian license plates format
Browse files Browse the repository at this point in the history
This is some progress for oskopek#86.

The Canadian license plates change from province to province. Included here are only private vehicles (commercial vehicles have different formats).
  • Loading branch information
DrDub committed Dec 23, 2021
1 parent a17518c commit fec7b31
Showing 1 changed file with 82 additions and 1 deletion.
83 changes: 82 additions & 1 deletion src/main/resources/syntax.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit fec7b31

Please sign in to comment.