Debian Codegraph @

dictionaries/pt_BR/test_compile_rules.py

raw
1 #!/usr/bin/env python3
2 # -*- tab-width: 4; indent-tabs-mode: nil; py-indent-offset: 4 -*-
3 #
4 # This file is part of the LibreOffice project.
5 #
6 # This Source Code Form is subject to the terms of the Mozilla Public
7 # License, v. 2.0. If a copy of the MPL was not distributed with this
8 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 #
10 # usage: run script in pt-BR dict root.
11 # $python3 test_compile_rules.py
12 import re
13 from pythonpath.lightproof_pt_BR import dic as rules
14
15
16 def main():
17 for i, rule in enumerate(rules):
18 msg = f'Test rule: {i} - {rule[0]}'
19 print(msg)
20 re.compile(rule[0])
21 return
22
23
24 if __name__ == '__main__':
25 main()
26 # vim: set shiftwidth=4 softtabstop=4 expandtab: