Coverage for src/wiktextract/extractor/simple/parse_utils.py: 100%

3 statements  

« prev     ^ index     » next       coverage.py v7.6.4, created at 2024-10-25 10:11 +0000

1# Ignorable templates that generate panels to the side, like 

2# Template:Wikipedia, or other meta-info like Template:see. 

3# XXX Template:BE850 has data whether the word is part of the Swadesh? list, 

4# so that could probably be captured. It doesn't do anything but tell you 

5# "this is part of the 850" and the previous and next alphabetically ordered 

6# entries. 

7PANEL_TEMPLATES: set[str] = set( 

8 [ 

9 "-", 

10 "also", 

11 "AVL", 

12 "AWL", 

13 "BE850", 

14 "BNC1000HW", 

15 "BNC1HW", 

16 "cleanup", 

17 "commonscat", 

18 "Commons category", 

19 "complex", 

20 "distinguish", 

21 "element", 

22 "format", 

23 "interwiktionary", 

24 "NGSL", 

25 "not to be confused with", 

26 "number box", 

27 "see", 

28 "simplify", 

29 "stub", 

30 "wik", 

31 "wikipedia", 

32 "Wikipedia", 

33 "wikispecies", 

34 "wikiquote", 

35 "Wikiquote", 

36 "improve", 

37 "TOCright", 

38 ] 

39) 

40 

41# Template name prefixes used for language-specific panel templates (i.e., 

42# templates that create side boxes or notice boxes or that should generally 

43# be ignored). 

44# PANEL_PREFIXES: set[str] = set() 

45 

46# Additional templates to be expanded in the pre-expand phase 

47# XXX nothing here yet, add as needed if some template turns out to be 

48# problematic when unexpanded. 

49ADDITIONAL_EXPAND_TEMPLATES: set[str] = set() 

50 

51ETYMOLOGY_TEMPLATES = set( 

52 [ 

53 "ety-affix", 

54 "ety-prefix", 

55 "ety-suffix", 

56 "word parts", 

57 "confix", 

58 "compound", 

59 "multiword term", 

60 ] 

61) 

62